import 'dart:async';

import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:injectable/injectable.dart';
import 'package:sonora/bloc/app/sj_app_event.dart';
import 'package:sonora/bloc/app/sj_app_state.dart';
import 'package:sonora/bloc/base/sj_base_bloc.dart';

@LazySingleton()
class SjAppBloc extends SjBaseBloc<SjAppEvent, SjAppState> {
  SjAppBloc() : super(const SjAppState()) {
    on<SjAppThemeChanged>(_onAppThemeChanged);
    on<SjAppLanguageChanged>(_onAppLanguageChanged);
    on<SjAppInitEvent>(_onAppInitEvent);
  }

  FutureOr<void> _onAppInitEvent(
      SjAppInitEvent event, Emitter<SjAppState> emit) async {}

  Future<void> _onAppThemeChanged(
      SjAppThemeChanged event, Emitter<SjAppState> emit) async {}

  Future<void> _onAppLanguageChanged(
      SjAppLanguageChanged event, Emitter<SjAppState> emit) async {}
}
